package com.oa.admin.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.joneying.common.web.response.Resp;
import com.oa.admin.dto.BusinessCardApplyAddDTO;
import com.oa.admin.dto.BusinessCardApplyListDTO;
import com.oa.admin.vo.BusinessCardApplyDetailsVO;
import com.oa.admin.vo.BusinessCardApplyListVO;
import com.oa.core.PageResult;
import com.oa.admin.entity.BusinessCardApply;
import com.baomidou.mybatisplus.service.IService;
import com.oa.core.exception.BusinessException;
import com.oa.core.exception.DataIsEmptyException;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 名片申请表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface IBusinessCardApplyService extends IService<BusinessCardApply> {
    /**
     * 自定义分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<BusinessCardApply> findList(Integer pageNum, Integer pageSize);

    /**
    * 根据id查询
    */
    BusinessCardApplyDetailsVO findBusinessCardApplyById(String id);


    PageResult<BusinessCardApplyListVO> findBusinessCardApplyList(BusinessCardApplyListDTO businessCardApplyListDTO);


    Resp addBusinessCardApply(BusinessCardApplyAddDTO businessCardApplyAddDTO) throws DataIsEmptyException, BusinessException;

    void export(BusinessCardApplyListDTO businessCardApplyListDTO, HttpServletResponse response);

}
